package com.zx.dao.dj;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.zx.model.dj.SaleRecord;
import com.zx.model.dj.StockMaster;

public interface SaleRecordMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SaleRecord record);

    int insertSelective(SaleRecord record);

    SaleRecord selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SaleRecord record);

    int updateByPrimaryKey(SaleRecord record);

    List<StockMaster> selSaleRecordCondition(@Param("startIndex") Integer startIndex,
            @Param("pageSize") Integer pageSize, @Param("orderType") int orderType, @Param("sbrand") String sbrand,
            @Param("smodel") String smodel, @Param("scolor") String scolor, @Param("ssize") String ssize,
            @Param("shopname") String shopname, @Param("createTime") String createTime);

    int selSaleRecordCount(@Param("sbrand") String sbrand, @Param("smodel") String smodel,
            @Param("scolor") String scolor, @Param("ssize") String ssize, @Param("shopname") String shopname,
            @Param("createTime") String createTime);
}